package com.lanou3g.multi_mybatis.service;

import com.lanou3g.multi_mybatis.bean.TbItem;
import com.lanou3g.multi_mybatis.bean.TbItemExample;
import com.lanou3g.multi_mybatis.mapper.taotao.TbItemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

// 操作taotao库中的tb_item表相关业务
@Service
public class ProductionService {
	@Autowired
	private TbItemMapper tbItemMapper;

	public List<TbItem> findOnePage() {
		TbItemExample example = new TbItemExample();

		TbItemExample.Criteria criteria = example.createCriteria();
		criteria.andIdLessThan(1000000L);
		return tbItemMapper.selectByExample(example);
	}
}
